/*
 * 此类主要提供在RPC启动之前的准备内容（Session&Live）：
 * 1. Session，提供TopicManager 的Session管理以及对应RPC
 * 2. Live, 提供摄像头和麦克风的数据以及RTMP管理
 */
#ifndef TAMISERVERSL_H
#define TAMISERVERSL_H

#include <QtCore>
#include "Ice/Ice.h"
#include "IceBox/IceBox.h"
#include "tmmediamanger.h"
#include "tmsessionmanager.h"

#if defined(TAMISERVERSL_LIBRARY)
#  define TAMISERVERSLSHARED_EXPORT Q_DECL_EXPORT
#else
#  define TAMISERVERSLSHARED_EXPORT Q_DECL_IMPORT
#endif

class TamiServerSL : public IceBox::Service
{

public:
    TamiServerSL();
    void start(const std::string & name, const Ice::CommunicatorPtr &comm, const Ice::StringSeq &args);
    void stop();
private:
    ::Ice::ObjectAdapterPtr m_adapter_sm, m_adapter_rs;
    TMMediaManger* m_pMediaMgr;
};



#endif // TAMISERVERSL_H
